package com.qt.pojo.entity.problem;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qt.pojo.base.BaseDO;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author pgw
 * @version 1.0
 * @description
 * @date Create by 2023/9/20 21:10
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("tag")
public class Tag  extends BaseDO {

    @TableId(type = IdType.AUTO)
    /**
     * id
     */
    private Long id;

    private Long tagClassificationId;

    /**
     * 标签名字
     */
    private String name;



    /**
     * 标签颜色
     */
    private String color;

    /**
     * deleted
     */
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gmtCreate;


    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gmtModified;

}
